/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vue;

import java.util.Observable;
import java.util.Observer;
import javax.swing.JFrame;

/**
 *
 * @author Simon
 */
public class VueFenetre implements Observer {
    
    FenetreCreerBDC fenetreCreer;
    FenetreRechercherBDC fenetreRechercher;
    FenetreAfficherBDC fenetreAfficher;
    
    
    public void init() {
        
        this.fenetreCreer = new FenetreCreerBDC();
        this.fenetreRechercher = new FenetreRechercherBDC();
        this.fenetreRechercher.setVisible(true);
    }
    
    public void afficherFenetreCreer() {
        
        this.fenetreCreer.setVisible(true);
        this.fenetreRechercher.setVisible(false);
    }
    
    public void afficherFenetreRechercher() {
        
        this.fenetreCreer.setVisible(false);
        this.fenetreRechercher.setVisible(true);
    }
    
    public void afficherFenetreAfficher() {
        
        this.fenetreCreer.setVisible(false);
        this.fenetreRechercher.setVisible(false);
    }
    
    public void update(Observable o,Object o1) {
        
    }
    
}
